#ifndef DOC_PARSER_H
#define DOC_PARSER_H

#include <string>
#include <tinyxml2/tinyxml2.h>

class DocParser {
public:
    DocParser(std::string path);

    int Parse(std::string &title, std::string &body);

private:
    bool DFS(tinyxml2::XMLElement *elem, const std::string str, std::string &result);

private:
    std::string path_;
};


#endif
